<style>
    .topic-information p.stats{
        /*position: relative;*/
    }
    p.stats a.count_info{
        float: left;
        width: 45%;
        text-align: right;
    }
    p.stats span.info-desc{
        float: right;
        width: 45%;
        text-align: left;
    }
</style>
<div id="topics">
  <% if topics_results.size > 0 %>
      <hr/>
      <% @topics_results.each do |topic| %>
          <% if !topic.nil? %>
              <li class='project-table' style="width: 95%;">
                <div class='root'>
                  <%= link_to topic.title, topic.url, :class => "project root leaf", :style => 'font-size: 13px;' %>
                  <span style="float: right;"></span>

                  <div class="project-block" style="width: 100%;">
                    <div class="wiki-description">
                      <p>
                        <%= topic.content.truncate(150) %>
                      </p>
                    </div>
                    <div class="topic-information" style="float: right; width: 20%">
                      <p class="stats">
                        <a class="count_info">
                          <%= topic.review_num %>
                        </a>
                        <%= content_tag('span', l(:label_review_num), :class => 'info-desc' ) %>
                      </p>
                      <!-- <p class="stats">
                        <a class="count_info">
                          <%#= topic.collection_num %>
                        </a>
                        <%#= content_tag('span', l(:label_collection_num), :class => 'info-desc' ) %>
                      </p> -->

                      <p class="stats">
                        <a class="count_info">
                          <%= topic.view_num+topic.view_num_ossean %>
                        </a>
                        <%= content_tag('span', l(:label_view_num), :class => 'info-desc') %>
                      </p>
                    </div>
                  </div>
                  <div class="add-info">
                    <div class="licences">
                      <%= content_tag('span', "#{l(:label_create_time)}: ") %>
                      <%= content_tag('span', format_time(topic.created_time)) %>
                    </div>
                    <div class="main-language">
                      <%= content_tag('span', "帖子来源：") %><%= link_to topic.url, topic.url %>
                    </div>
                  </div>
                  <div class="tags">
                    <div id="tags">
                      <%= image_tag("/images/sidebar/tags.png") %>
                      <%= render :partial => 'tags/tag_name', :locals => {:obj => topic, :object_flag => "9", :non_list_all => true} %>
                    </div>
                  </div>

                </div>

              </li>
          <% end %>

      <% end %>

  <% end %>
</div>
<% html_title '标签搜索' %>
